<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="logo/buyi_16_16.ico"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆成功-布依在线-布依人自己的社区</title>

</head>
<body>
	登陆成功，载入中......
</body>


<script type="text/javascript">
	
	/*
	var hash = document.location.hash.substring(1);
	var url="http://localhost:8080/weibo_login.html?"+hash;
	var tokenArray = hash.split("&");
	var accessToken = tokenArray[0].replace("access_token=","");
	var expiresIn = tokenArray[1].replace("expires_in=","");
	var remindIn = tokenArray[2].replace("remind_in=","");
	var uid = tokenArray[3].replace("uid=","");
	
	url+="?accessToken="+accessToken;
	url+="&expiresIn="+expiresIn;
	url+="&remindIn="+remindIn;
	url+="&uid="+uid;
	*/
	
	// Read a page's GET URL variables and return them as an associative array.
	
	function getUrlVars()
	{
	    var vars = [], hash;
	    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	    for(var i = 0; i < hashes.length; i++)
	    {
	        hash = hashes[i].split('=');
	        vars.push(hash[0]);
	        vars[hash[0]] = hash[1];
	    }
	    return vars;
	}
	//location.href="http://buyi.wooophone.com/weibo_login.html?code="+getUrlVars()["code"];
	var url = "http://localhost:8080/login_weibo.action?code="+getUrlVars()["code"];
	//var url = "http://buyi.wooophone.com/weibo_login.html?code="+getUrlVars()["code"];
	
	document.write(url);
	
	location.href=url;
	
</script>



</html>